package com.example.plugin.controller;

import com.example.plugin.entity.User;
import com.example.plugin.serviceimp.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    UserService userService;
    @RequestMapping("/")
    public void userop() {
        User user=new User(12,123,"张三",123412313);
        //userService.insert(user);
        System.out.println(userService.selectByPrimaryKey(111));
    }
}
